<?php
/**
 * Created by PhpStorm.
 * User: lhl
 * Date: 2020/11/24
 * Time: 13:25
 * Features:后台操作日志
 */

namespace app\adminapiv3\middleware;


use app\common\service\platform_manage\log\ServerOptionHistoryService;
use think\Request;

class AdminLog
{
    /**
     * 后置中间件
    */
    public function handle(Request $request, \Closure $next)
    {
        $response = $next($request);
        //记录后台操作日志
        $logServer = new ServerOptionHistoryService();
        $logServer->addUserLog();
        return $response;
    }

}